<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('dashboard', [App\Admin\Controllers\HomeController::class, 'index'])->name('nome');
    //网站设置
    $router->resource('configurations', App\Admin\Controllers\ConfigurationController::class);
    //后台管理员
    $router->resource('auth/users', App\Admin\Controllers\Auth\UserController::class);
    //商品分类
    $router->resource('goods_category', App\Admin\Controllers\GoodsCategoryController::class);
    //商品
    $router->resource('goods', App\Admin\Controllers\GoodController::class);
    //用户橱窗
    $router->resource('shopwindow', App\Admin\Controllers\ShopwindowController::class);
    //会员
    $router->resource('users', App\Admin\Controllers\UserController::class);
    //银行卡
    $router->resource('card', App\Admin\Controllers\CardController::class);
    //代审核认证
    $router->resource('usersreview', App\Admin\Controllers\UserreviewController::class);
    //文章管理
    $router->resource('articles', App\Admin\Controllers\ArticleController::class);
    //客服
    $router->resource('salesman', App\Admin\Controllers\SalesmanController::class);
    //投诉
    $router->resource('complains', App\Admin\Controllers\ComplaintController::class);
    //banner管理
    $router->resource('banner', App\Admin\Controllers\BannerController::class);
    //订单管理
    $router->resource('goods_order', App\Admin\Controllers\GoodsOrderController::class);
    //物流信息
    $router->resource('logistic', App\Admin\Controllers\GoodsLogisticController::class);
    //$router->get('logistic', [App\Admin\Controllers\GoodsLogisticController::class, 'list']);
    //创建订单
    $router->get('general_create', [App\Admin\Controllers\GoodsOrderController::class,"generalCreate"]);
    //自动创建
    $router->get('auto_create', [App\Admin\Controllers\GoodsOrderController::class,'autoCreate']);
    //点击次数
    $router->resource('shopclicks', App\Admin\Controllers\ShopclickController::class);
    //点击任务
    $router->resource('shopclickconfig', App\Admin\Controllers\ShopclickconfigController::class);
    //推广配置
    $router->resource('adsconfig', App\Admin\Controllers\AdsConfigController::class);
    //推广订单
    $router->resource('ads', App\Admin\Controllers\AdController::class);
    //消息通知
    $router->resource('messages', App\Admin\Controllers\MessageController::class);
    //账变明细
    $router->resource('accounts', App\Admin\Controllers\AccountController::class);
    //提现记录
    $router->resource('withdrawal', App\Admin\Controllers\WithdrawalController::class);
    //充值
    $router->resource('recharge', App\Admin\Controllers\RechargeController::class);
    //支付通道
    $router->resource('payment-third-pay', App\Admin\Controllers\PaymentThirdPayController::class);
    //支付通道编码
    $router->resource('payment-third-code', App\Admin\Controllers\PaymentThirdCodeController::class);
    //优惠券配置
    $router->resource('couponconfig', App\Admin\Controllers\CouponConfigController::class);
    //优惠券
    $router->resource('coupon', App\Admin\Controllers\CouponController::class);
    //优惠券使用记录
    $router->resource('couponlog', App\Admin\Controllers\CouponsLogController::class);





});
